const chapter = require("../../src/chapter/chapterService");
module.exports = {
  path: "/chapter",
  name: "chapter模块",
  children: [{
      path: "/add",
      name: "添加",
      service: chapter["add"],
      params: {
        name: "chapter"
      }
    },
    {
      path: "/list",
      name: "列表",
      service: chapter["all"],
      params: {
        //  currPage: "当前页",
        //  pageSize: "每页条数",
      }
    },
    {
      path: "/all",
      name: "列表",
      service: chapter["all"],
    },
    {
      path: "/find",
      name: "根据条件查找",
      service: chapter["find"],
      params: {

      }
    },
    {
      path: "/detail",
      name: "详情",
      service: chapter["detail"],
      params: {
        chapterId: "chapterId"
      }
    },
    {
      path: "/edit",
      name: "修改",
      service: chapter["edit"],
      params: {
        chapterId: "chapterId"
      }
    },
    {
      path: "/del",
      name: "删除",
      service: chapter["del"],
      params: {
        chapterId: "chapterId"
      }
    }
  ]
};